<template>
  <div>
    <van-sticky>
      <van-nav-bar
          left-text="返回"
          left-arrow
          @click-left="onClickLeft"
      >
        <template #title>
          {{universityName}}官网
        </template>
      </van-nav-bar>
    </van-sticky>
    <iframe
        :src='universityOff'
        width="100%"
        style="height: 100vh;border: 0px;">
    </iframe>
  </div>
</template>

<script>

export default {
  name: "UniversityOfficial",
  methods: {
    onClickLeft() {
      this.$router.back()
    },
  },
  computed:{
    universityName(){
      return this.$route.params.name
    },
    universityOff(){
      return this.$route.params.off
    }
  }
}
</script>

<style scoped>

</style>